<template>
    <div id="en">
        <div class="box" :class="{ pink: true, big: false }">黑马程序员</div>
        <div class="box" :class="['pink', 'big']">黑马程序员</div>

    </div>
</template>

<script>
    export default {
        name: "3-v-bind",
        data() {
            return {

            }
        },
        methods: {

        }
    }
</script>

<style scoped>
    .box {
        width: 200px;
        height: 200px;
        border: 3px solid #000;
        font-size: 30px;
        margin-top: 10px;
    }
    .pink {
        background-color: pink;
    }
    .big {
        width: 300px;
        height: 300px;
    }
</style>